package cn.com.tianpeidong.restaurantadmin.project.admin.dishes.mapper;

import cn.com.tianpeidong.restaurantadmin.project.admin.dishes.entity.Dishes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author tianpeidong
 */
@Mapper
public interface DishesMapper {
    List<Dishes> listDishes(Dishes dishes);

    Dishes getDishesByName(@Param("dishesName") String dishesName);

    int insertNewDishes(Dishes dishes);

    int deleteDishes(@Param("id") Long id);

    int updateDishes(Dishes dishes);

    Dishes getById(@Param("id") Long id);

    int checkDishesTypeUnderUse(@Param("typeId") Long id);
}
